package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRiskXingpang;
import com.appkubes.mall.core.po.FintechRiskXingpangExample;
import com.appkubes.mall.core.po.FintechRiskXingpangWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRiskXingpangMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskXingpangSqlProvider.class, method="countByExample")
    long countByExample(FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRiskXingpangSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_risk_xingpang",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String userKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_risk_xingpang (user_key, `password`, ",
        "crawlerId, crawlerToken, ",
        "create_time, update_time, ",
        "operatorResult, operatorReportResult)",
        "values (#{userKey,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ",
        "#{crawlerid,jdbcType=VARCHAR}, #{crawlertoken,jdbcType=VARCHAR}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
        "#{operatorresult,jdbcType=LONGVARCHAR}, #{operatorreportresult,jdbcType=LONGVARCHAR})"
    })
    int insert(FintechRiskXingpangWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRiskXingpangSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRiskXingpangWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskXingpangSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerId", property="crawlerid", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerToken", property="crawlertoken", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="operatorResult", property="operatorresult", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="operatorReportResult", property="operatorreportresult", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<FintechRiskXingpangWithBLOBs> selectByExampleWithBLOBsWithRowbounds(FintechRiskXingpangExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskXingpangSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerId", property="crawlerid", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerToken", property="crawlertoken", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="operatorResult", property="operatorresult", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="operatorReportResult", property="operatorreportresult", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<FintechRiskXingpangWithBLOBs> selectByExampleWithBLOBs(FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskXingpangSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerId", property="crawlerid", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerToken", property="crawlertoken", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRiskXingpang> selectByExampleWithRowbounds(FintechRiskXingpangExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskXingpangSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerId", property="crawlerid", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerToken", property="crawlertoken", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRiskXingpang> selectByExample(FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "user_key, `password`, crawlerId, crawlerToken, create_time, update_time, operatorResult, ",
        "operatorReportResult",
        "from fintech_risk_xingpang",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerId", property="crawlerid", jdbcType=JdbcType.VARCHAR),
        @Result(column="crawlerToken", property="crawlertoken", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="operatorResult", property="operatorresult", jdbcType=JdbcType.LONGVARCHAR),
        @Result(column="operatorReportResult", property="operatorreportresult", jdbcType=JdbcType.LONGVARCHAR)
    })
    FintechRiskXingpangWithBLOBs selectByPrimaryKey(String userKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskXingpangSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRiskXingpangWithBLOBs record, @Param("example") FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskXingpangSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") FintechRiskXingpangWithBLOBs record, @Param("example") FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskXingpangSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRiskXingpang record, @Param("example") FintechRiskXingpangExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskXingpangSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRiskXingpangWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_risk_xingpang",
        "set `password` = #{password,jdbcType=VARCHAR},",
          "crawlerId = #{crawlerid,jdbcType=VARCHAR},",
          "crawlerToken = #{crawlertoken,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "operatorResult = #{operatorresult,jdbcType=LONGVARCHAR},",
          "operatorReportResult = #{operatorreportresult,jdbcType=LONGVARCHAR}",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(FintechRiskXingpangWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_xingpang
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_risk_xingpang",
        "set `password` = #{password,jdbcType=VARCHAR},",
          "crawlerId = #{crawlerid,jdbcType=VARCHAR},",
          "crawlerToken = #{crawlertoken,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP}",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRiskXingpang record);
}